package cn.relx.org.domain;

import cn.relx.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
public class Employee extends BaseDomain {
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state = 1;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;
    // 二次密码
    private String comfirmPassword;
    // 所属部门
    private String deptName;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Employee> children = new ArrayList<>();
}
